package com.adam.dao;

import com.adam.pojo.Books;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.awt.print.Book;
import java.util.List;

public interface BookMapper {
    //add
    int addBook(Books book);
    //delete
    int deleteBook(@Param("bookID") int id);
    //update
    int updateBook(Books book);
    //selectByID
    Books queryByID(@Param("bookID") int id);
    //selectAll
    List<Books> queryAll();

    List<Books> searchBook(String bookName);
}
